<?php

/**
 * Created by PhpStorm.
 * User: wukent
 * Date: 2017/9/27
 * Time: 下午4:09
 */
class OfflineOrderAction extends ApiAction
{
    protected $mainMod;
    protected function _initialize() {
        parent::_initialize();
        $this->mainMod = D("OfflineOrder");
    }

    public function userorder(){

        $page = empty($this->_post('curpage'))?1:$this->_post('curpage');
        $pernum = empty($this->_post('cursize'))?5:$this->_post('cursize');

        if ($this->uid>0){
            $orderlist = $this->mainMod->numList($this->uid,$page,$pernum);


                $this->rest($orderlist,1);


        }else{
            $this->rest('',16);
        }

    }
}